#pragma once
#include <QPrinter>
#include <QPixmap>
#include <QPainter>
#include <QPrintPreviewDialog>
#include <QPrintDialog>
#include <QPageSetupDialog>
#include <QDebug>
#include <QTableWidget>
#include <QTextDocument>
#include <QHeaderView>
#include <QPrinterInfo>

#include "debugLog.h"

class PrinterManager : public QObject
{
    Q_OBJECT
public:
    PrinterManager();

public:

    static void printTable(const QTableWidget& table, bool printHiddenItem = false);
    static void printTable(QList<QTableWidget*> tableList, bool printHiddenItem = false);

    static QString table2HTML(const QTableWidget& table, int width, bool printHiddenItem = false);

};


